import request from '@/utils/request.js'

/**
 * 获取专业列表
 * @param {*} params 
 * @returns 
 */
export function listMajor() {
    return request({
        url: "/major/list",
        method: "GET",
        isToken: true,
    })
}

/**
 * 获取字典表
 * @param {*} params 
 * @returns 
 */
export function listDictType(dictType) {
    return request({
        url: `/system/dict/data/type/${dictType}`,
        method: "GET",
        isToken: true,
    })
}